package reqs

import (
	"github.com/cuiyuanxin/airuisi-admin/internal/model"
	"github.com/cuiyuanxin/airuisi-admin/internal/service"
)

type LoginAccountRequest struct {
	Username string `form:"username" binding:"required,min=5,max=32"`
	Password string `form:"password" binding:"required,min=5,max=32"`
}

type LoginMobileRequest struct {
	Mobile  string `form:"mobile" binding:"required,len=11,checkMobile"`
	Captcha string `form:"captcha" binding:"required,len=6"`
}

// 验证手机号码
func (svc *service.Service) CheckMobile(param *LoginMobileRequest) (model.User, error) {
	return
}
